'use strict';
import { Controller } from 'egg';

export default class ReportController extends Controller {
  public async repotGoods() {
    const { ctx } = this;
    try {
      let res = await ctx.service.report.repotGoods(ctx.request.body);
      ctx.success(res, '操作成功');
    } catch (e) {
      console.log(e);
      ctx.error(423, ctx.helper.errorCode[423]);
    }
  }
}